program Sort;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  n, i, j, a: Integer;
  fin, fout: TextFile;
  mass: array of Integer;

begin
  AssignFile(fin, 'input.txt');
  Reset(fin);
  AssignFile(fout, 'output.txt');
  Rewrite(fout);
  Readln(fin, n);
  SetLength(mass, n);
  for i:= 0 to n-1 do
  begin
    Read(fin, mass[i]);
  end;
  for j:= 1 to n-1 do
  begin
    for i:= 0 to n-j-1 do
    begin
      if mass[i] > mass[i+1] then
      begin
        a:=mass[i];
        mass[i]:=mass[i+1];
        mass[i+1]:=a;
      end;
    end;
  end;
  for i:= 0 to n-1 do
  begin
    write(fout, mass[i], ' ');
  end;
  CloseFile(fin);
  CloseFile(fout);
end.
